/**
 * AppService.java
 */
package org.yate.oa.service.imp;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.yate.oa.dao.IBaseMapperDao;
import org.yate.oa.dao.mapper.LoginMapper;
import org.yate.oa.model.LoginEntity;
import org.yate.oa.service.ILoginService;

/**
 * @author Yate
 * @date 2013年9月23日
 * @description TODO
 * @version 1.0
 */
@Service
public class LoginService extends BaseService<LoginEntity, Long> implements
		ILoginService {

	@Resource(name = "loginMapper")
	private LoginMapper loginDao;

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.yate.alive.service.imp.BaseService#getMapperDao()
	 */
	@Override
	protected IBaseMapperDao<LoginEntity, Long> getMapperDao() {
		return this.loginDao;
	}

	public LoginEntity getEntitieBy(final LoginEntity e) {
		return this.loginDao.getEntitieBy(e);
	}

	@Override
	public Integer getZLId(Integer userId) {
		return loginDao.getZLId(userId);
	}
}
